/* 3D足球动画样式 */

.football-animation {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  perspective: 200px;
}

.football {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 50%, #e0e0e0 100%);
  border-radius: 50%;
  position: relative;
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  animation: footballFloat 4s ease-in-out infinite, footballSpin 6s linear infinite;
  transform-style: preserve-3d;
  cursor: pointer;
  transition: all 0.3s ease;
}

.football::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 50%;
  animation: shine 3s ease-in-out infinite;
  pointer-events: none;
}

.football-pattern {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
}

/* 中心五边形 */
.pentagon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, #333333 100%);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* 六边形图案 */
.hexagon {
  position: absolute;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, #333333 100%);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.hexagon-1 {
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
}

.hexagon-2 {
  bottom: 8px;
  left: 6px;
  transform: rotate(15deg);
}

.hexagon-3 {
  bottom: 8px;
  right: 6px;
  transform: rotate(-15deg);
}

/* 额外的装饰图案 */
.pentagon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

/* 动画效果 */
@keyframes footballSpin {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes footballFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.05);
  }
}

@keyframes shine {
  0%, 100% {
    opacity: 0;
    transform: rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: rotate(180deg);
  }
}

/* 悬停效果 */
.football:hover {
  animation-duration: 2s, 3s;
  transform: scale(1.1);
  box-shadow: 
    0 12px 24px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(76, 175, 80, 0.3);
}

.football:active {
  transform: scale(0.95);
  animation-duration: 1s, 1.5s;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .football {
    width: 40px;
    height: 40px;
  }
  
  .football-pattern {
    width: 32px;
    height: 32px;
  }
  
  .pentagon {
    width: 10px;
    height: 10px;
  }
  
  .hexagon {
    width: 6px;
    height: 6px;
  }
  
  @keyframes footballFloat {
    0%, 100% {
      transform: translateY(0px) scale(1);
    }
    50% {
      transform: translateY(-4px) scale(1.03);
    }
  }
}